import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 获取维修类型
export const queryType = params => axios.post(`${SERVER.DMSCLOUD_REPAIR}/basedata/repairParam/queryType`, params);

// 获取车系
export const querySeries = params => axios.post(`${SERVER.DMSCLOUD_REPAIR}/basedata/repairParam/querySeries`, params);

// 获取经销商
export const queryOwner = params => axios.get(`${SERVER.SYSMANAGE}/dealerInfo/getDealerCompany`, params);

// 获取经销商
export const save = params => axios.post(`${SERVER.DMSCLOUD_REPAIR}/basedata/repairParam/saveDealer`, params);

// 获取经销商
export const findAll = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/basedata/repairParam/findAll`, params);

// 获取该经销商维修类型
export const queryDealerType = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/basedata/repairParam/queryDealerType`, {
  params
});

// 获取该经销商维修类型
export const queryDealerSeries = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/basedata/repairParam/queryDealerSeries`, {
  params
});
